<template>
  <div class="content">
    <Air title="地产列表"></Air>
     <List :list='list'></List>
  </div>
</template>

<script>
import List from './components/List'
import {getProperties} from "@/api/properties"
export default {
  components:{
    List
  },
  data(){
    return {
      list:[]
    }
  },
  created(){
    this.getProperties()
    },
  methods:{
   async getProperties(){
      let {data} = await getProperties({title_contains:this.$route.query.title})
      // console.log(data)
      this.list=data

    }
  }
}
</script>

<style>

</style>